<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <title>{BEESCRM:$title}</title>
    <meta name="description" content="">
    <meta name="HandheldFriendly" content="True">
    <meta name="MobileOptimized" content="320">
    <meta name="viewport" content="width=device-width, initial-scale=1, minimal-ui, user-scalable=no">
    <meta http-equiv="cleartype" content="on">
    <meta name="format-detection" content="telephone=no">
    <link rel="stylesheet" href="css/style.css">

</head>
<body>
<div class="wrapper">
    <div class="header header2 text-center">
        <a href="/Complaint/Common/index/irs_id/{BEESCRM:$irs_id}" class="iconfont icon-zuo left"></a>
        <div class="font-16">公寓员工</div>
    </div>
    <div class="content padding-12">
        <volist name="data" id="vo">
        <div class="list flex-2">
            <div class="left">
                <img onerror="this.src='/assets/complaint/images/touxiang.jpg'" src="{BEESCRM:$vo.picture_url}" alt="">
            </div>
            <div class="right font-12">
                <div class="name font-14">{BEESCRM:$vo.employee_name}</div>
                <div class="gray padding-4">职位：{BEESCRM:$vo.employee_job}</div>
                <div class="gray padding-4">简介：{BEESCRM:$vo.summary}</div>
                <div class=" text-right">
                    <a href="/Complaint/Common/complaint/employee_id/{BEESCRM:$vo.employee_id}/employee_restaurant_id/{BEESCRM:$vo.employee_restaurant_id}/irs_id/{BEESCRM:$irs_id}"
                       class="column text-center column-two font-12">投诉</a>
                </div>
            </div>
        </div>
        </volist>
    </div>
    <div class="blank"></div>
    <div class="bottom-hint text-center flex-3" ><span class="margin-4 gray2"  id="more"></span></div>
</div>
<include file="Common:load"/>
</body>
<script src="/assets/complaint/js/jquery-2.1.0.min.js"></script>
<script src="/assets/complaint/js/public.js"></script>
<script src="/assets/complaint/js/layer.js"></script>
<script>
    var height = $(window).height();
    $('.wrapper').css('minHeight', height);
</script>
<script type="text/javascript">
    var page =0;
    $(window).scroll(function () {
        if ($(document).scrollTop() + $(window).height() > $(document).height() - 100) {
            ajax_get_order();
        }
    });
    function ajax_get_order(){
        page +=10;

        $.ajax({
            data:{page: page,is_ajax:1,restaurant_id:{BEESCRM:$restaurant_id}},
            method: 'post',
            dataType: 'html',
            url: '/Complaint/Common/ajaxemployee/irs_id/{BEESCRM:$irs_id}',//+tab,
            success: function(data)
            {
                if(data == ''){
                    $('#more').text('没有更多了');
                }else
                {
                    $(".content").append(data);
                }
            }
        });
    }

    var height=$(window).height();
    $('.wrapper').css('minHeight',height);
</script>
</html>